<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		<title>管理页面</title>

		<script src="${pageContext.request.contextPath}/js/prototype.lite.js"
			type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/moo.fx.js"
			type="text/javascript"></script>
		<script src="${pageContext.request.contextPath}/js/moo.fx.pack.js"
			type="text/javascript"></script>
		<link rel="stylesheet"
			href="${pageContext.request.contextPath}/style/left.css"
			type="text/css" />
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0"
			bgcolor="#EEF2FB" style="height: 280">
			<tr>
				<td width="182" valign="top">
					<div id="container">
						<c:forEach var="parentRight" items="${sessionScope.userBean.sysRole.rightList}">
						<c:if test="${parentRight.rightParentCode==0}">
						<h1 class="type">
							<a href="javascript:void(0)">${parentRight.rightText}</a>
						</h1>
						</c:if>
						<div class="content">
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr>
									<td>
										<img
											src="${pageContext.request.contextPath}/images/menu_topline.gif"
											width="182" height="5" />
									</td>
								</tr>
							</table>
							<ul class="MM">
								<c:forEach var="childRight" items="${sessionScope.userBean.sysRole.rightList}">
								<c:if test="${childRight.rightParentCode==parentRight.rightCode}">
								<li>
									<a
										href="${pageContext.request.contextPath}/${childRight.rightUrl}"
										target="main">${childRight.rightText}</a>
								</li>
								</c:if>
								</c:forEach>
							</ul>
						</div>
						</c:forEach>
					</div>
					<script type="text/javascript">
		var contents = document.getElementsByClassName('content');
		var toggles = document.getElementsByClassName('type');
	
		var myAccordion = new fx.Accordion(
			toggles, contents, {opacity: true, duration: 400}
		);
		myAccordion.showThisHideOpen(contents[0]);
	</script>
				</td>
			</tr>
		</table>
	</body>
</html>
